<?php
class Line_product_type_model extends CI_Model
{
    private $table = 'line_product_type';
    
    public function find()
    {
       $rows = array();
       $result = $this->db->get($this->table);
       foreach ($result->result() as $val) {
           $rows[$val->id] = $val->name;
       }
       return $rows;
    }

}